package com.cqupt.springframework.test.event;

import com.cqupt.springframework.context.ApplicationListener;
import com.cqupt.springframework.context.event.ContextRefreshedEvent;

import java.util.Date;

/**
 * @author Zhy
 * @date 2021/8/5 10:29
 */
public class ContextRefreshEventListener implements ApplicationListener<ContextRefreshedEvent> {

    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        System.out.println("容器刷新：" + event.getSource() + "；时间：" + new Date());
    }
}
